//
//  XLBasicViewController.h
//  XLConversationInputView
//
//  Created by ilongge on 2022/8/12.
//

#import <UIKit/UIKit.h>

@interface XLBasicViewController : UIViewController

@property (nonatomic, strong) NSString *titleString;
/// 标题
- (void)setNavTitle:(NSString *)titleStr
     leftButtonItem:(UIButton *)leftBtn
    rightButtonItem:(UIButton *)rightBtn;

/// 默认样式的返回barItem按钮
- (UIButton *)normalBackButton;

/// 自定义barItem按钮
- (UIButton *)customBarItemButton:(NSString *)title
                  backgroundImage:(NSString *)bgImg
                       foreground:(NSString *)fgImg
                              sel:(SEL)sel;

/// 自定义图片+title按钮
-(UIButton *)customBarImgAndTitle:(NSString *)title
               andNormalImageName:(NSString *)imageName
               andSelectImageName:(NSString *)selectImageName
                           andSel:(SEL)selector;

/// 返回按钮barItem
-(UIButton *)backBarItemButtionWithSel:(SEL)sel;

/// 返回上一级控制器
- (void)leftBackAction;

/// 设置通用属性
- (void)naviBarNeedHidden:(BOOL)isHidden
             andAnimation:(BOOL)isAnimation; 

@end

